package cn.how2go.api.service.impl;

import cn.how2go.api.entity.Device;
import cn.how2go.api.entity.UserDeviceState;
import cn.how2go.api.mapper.DeviceMapper;
import cn.how2go.api.mapper.UserDeviceStateMapper;
import cn.how2go.api.service.DeviceService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LGP
 * @since 2020-05-31
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements DeviceService {
    @Autowired
    private UserDeviceStateMapper userDeviceStateMapper;

    @Override
    public List<UserDeviceState> getListUserDeviceState() {
        return userDeviceStateMapper.listUserDeviceState();
    }
}
